﻿using HarmonyLib;

namespace oxygen_mod
{
    public partial class Patches
    {
        [HarmonyPatch(typeof(ShowerConfig), "CreateBuildingDef")]
        private static class Patch
        {
            private static BuildingDef Postfix(BuildingDef def)
            {
                int heightInCells = 3;
                def.HeightInCells = heightInCells;
                def.AnimFiles = new KAnimFile[]
                {
                    Assets.GetAnim("MyShower_kanim")
                };
                def.GenerateOffsets();
                return def;
            }
        }
    }
}
